package com.ftg.learn.exam.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 试卷表，用来生成试卷
 * </p>
 *
 * @author kangjx
 * @since 2022-03-12
 */
@TableName("exam_paper")
@ApiModel(value = "Paper对象", description = "试卷表，用来生成试卷")
public class Paper implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("试卷名称")
    private String title;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("逻辑删除字段")
    @TableLogic
    private Integer isdeleted;

    @ApiModelProperty("总计得分")
    private Integer score;

    @ApiModelProperty("试卷生成人员")
    private String createName;

    @ApiModelProperty("试卷参与人员")
    private String joinName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
    public Integer getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Integer isdeleted) {
        this.isdeleted = isdeleted;
    }
    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }
    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }
    public String getJoinName() {
        return joinName;
    }

    public void setJoinName(String joinName) {
        this.joinName = joinName;
    }

    @Override
    public String toString() {
        return "Paper{" +
            "id=" + id +
            ", title=" + title +
            ", createTime=" + createTime +
            ", endTime=" + endTime +
            ", isdeleted=" + isdeleted +
            ", score=" + score +
            ", createName=" + createName +
            ", joinName=" + joinName +
        "}";
    }
}
